package com.zjsru.clients;

import com.zjsru.fallback.UserClientFallback;
import com.zjsru.pojo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "user-service", fallback = UserClientFallback.class)
public interface UserClient {
    @GetMapping("/user/query/{user_Id}")
    Result queryUserById(@PathVariable("user_Id") Long user_Id);
    @GetMapping("/user/check-status")
    boolean checkStatus(@RequestParam("username") String username);
}
